package com.tln.sys.menu.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.xjj.core.modules.entity.IdEntity;

@SuppressWarnings("serial")
@Entity
@Table(name = "MENUS")
@XStreamAlias("menu")
public class Menu extends IdEntity {
	
	public static final String TABLE_ALIAS = "菜单";
	public static final String ALIAS_MENU_ID = "标识";
	public static final String ALIAS_ICON = "图片";
	public static final String ALIAS_MENU_NAME = "菜单名称";
	public static final String ALIAS_PARENT_ID = "父标识";
	public static final String ALIAS_PARENT_NAME = "父菜单名称";
	public static final String ALIAS_URL = "菜单连接";

	private String icon;
	private String menuName;
	private String parentId;
	private String parentName;//父菜单名称
	
	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	private String url;

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
